package org.cdc.divination.frame.data.type;

public class IntegerType implements FormatType {
    @Override
    public boolean checkData(String data) {
        return data.matches("\\d+");
    }

    @Override
    public Object parseData(String data) {
        return Integer.parseInt(data);
    }

    @Override
    public Object defaultData() {
        return 0;
    }
}
